.vin-theme-dark {
  .vin-uploader__preview-list {
    color: $dark-color;
    background: $dark-background2;
  }
  .close {
    color: $dark-color !important;
  }
}
.vin-uploader {
  position: relative;
  display: flex;
  flex-wrap: wrap;

  &__slot {
    position: relative;
  }

  &__upload {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: $uploader-picture-width;
    height: $uploader-picture-height;
    background: $uploader-background;
  }

  &__input {
    position: absolute !important;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
    overflow: hidden;
    cursor: pointer !important;
    opacity: 0;
    &:disabled {
      cursor: not-allowed;
    }
  }

  &__preview {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
    margin-bottom: 10px;
    box-shadow: 0 2px 10px 0 rgb(0 0 0 / 10%);

    &__progress {
      position: absolute;
      top: 0;
      left: 0;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      width: 100%;
      height: 100%;
      background: rgba(0, 0, 0, 0.6);
      &__msg {
        margin-top: 6px;
        color: $white;
        font-size: 12px;
      }
    }
    &.list {
      width: 100%;
      margin-top: 10px;
      margin-right: 0;
      margin-bottom: 0;
    }
    &-list {
      position: relative;
      display: flex;
      flex-direction: column;
      width: 100%;
      height: 32px;
      padding-right: 20px;
      .vin-uploader__preview-img__file__name {
        height: 24px;
        padding: 2px;
        -webkit-line-clamp: 1;
      }

      .vin-uploader__preview-img__file__del {
        position: absolute;
        top: 6px;
        right: 4px;
      }
      .vin-progress {
        position: absolute;
        right: 0;
        bottom: 0;
        left: 0;
        .vin-progress-outer {
          height: 2px !important;
        }
      }
    }
    &-img {
      position: relative;
      width: $uploader-picture-width;
      height: $uploader-picture-height;
      .close {
        position: absolute;
        top: 0;
        right: 0;
        color: rgba(0, 0, 0, 0.6);
        transform: translate(50%, -50%);
      }
      .tips {
        position: absolute;
        right: 0;
        bottom: 0;
        left: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        height: 0;
        color: $white;
        font-size: 12px;
        text-align: center;
        background: rgba(0, 0, 0, 0.54);
        transition: height 0.3s;
        @include oneline-ellipsis();
      }
      &__c {
        width: 100%;
        height: 100%;
      }
      &__file {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        height: 100%;
        transition: all 0.3s;

        &__name {
          display: flex;
          width: 100%;
          color: $text-color;
          font-size: 12px;
          &.error {
            color: red !important;
          }
          &.success {
            color: #1890ff !important;
          }
          .vin-icon-link {
            &::before {
              margin-top: -25%;
              margin-left: -25%;
              transform: none;
            }
          }
          @include moreline-ellipsis();
        }
      }
    }
  }
}
